package odgs.transaction;

import odgs.manager.ExecuteManager;


public class ExecuteTransction  extends ContentsGetTransaction
{
	private ExecuteManager manager;
	
	public ExecuteTransction(long id) 
	{
		super(id);
	}
	
	public String toString() 
	{
		return "Execute : " + source.getName() + "." + source.getType();
	}
	
	public void end(long id, String name) 
	{
		if(totalSize <= sendedSize)
		{
			manager.execute(this);
		}
	}

	public void setExecuteManager(ExecuteManager executeManager) 
	{
		this.manager = executeManager;
	}
}
